|
DX11 SET WINDOW SIZE
Sets the size of the render window in pixels.
Take note that this size includes the width and height of the window's borders and caption bar if it has such.
You can use the DX11 SET WINDOW CLIENT SIZE function to resize only the actual accessible part of the window instead.
Take note that the display mode is what determines the resolution of the back buffer. If you set your window size so that the client
area does not exactly match the display mode resolution, the output will be stretched to fit, which will result in a less sharp image.
To work around this, you can set the display mode to a high enough one (such that it is larger or equal to the client area of the window)
and then set the main camera's viewport (DX11 SET CAMERA VIEWPORT) to match the window's client size. If you do it this way you probably
want to also change the camera's aspect ratio to match (DX11 SET CAMERA ASPECT RATIO); the normal value for this is the viewport width
divided by the viewport height.
Take note that this function has no effect in fullscreen mode.
DX11 SET WINDOW SIZE width, height
width Dword The new width of the window, in pixels.
height Dword The new height of the window, in pixels.
This function does not return a value.
DISPLAY Functions Menu
DX11 Function Categories
|